//
//  SQLiteManager.h
//  match2
//
//  Created by Tri Vo on 7/10/13.
//
//

#ifndef __match2__SQLiteManager__
#define __match2__SQLiteManager__

#include <iostream>
#include <stdio.h>
#include "sqlite3.h"
#include "GameController.h"


class SQLiteManager {
private:
    sqlite3 *mDatabase;
    static SQLiteManager *mInstance;
    
    SQLiteManager() {
        openDB("Database.sqlite");
    }
public:
    static SQLiteManager* getInstance();
    bool openDB(char* fileName);
    std::vector<std::vector<std::string> > query(char *fileName);
    void closeDB();
//    std::vector<std::vector<std::string> > query(char* query);
    ~SQLiteManager();

    
};

#endif /* defined(__match2__SQLiteManager__) */
